package com.lening.collect.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.collect.dto.BillDTO;
import com.lening.collect.pojo.Bill;
import com.lening.collect.mapper.BillMapper;
import com.lening.collect.service.IBillService;
import com.lening.collect.vo.BillVo;
import com.lening.common.base.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 杨军
 * @since 2024-05-31
 */
@Service("BillServiceImpl")
public class BillServiceImpl extends BaseServiceImpl<BillMapper, Bill, BillDTO> implements IBillService {
    @Autowired
    private BillMapper mapper;

    @Override
    public Page<?> page(BillDTO billDTO) {
        return mapper.get(billDTO);
    }


    @Override
    public BillVo getById(Long id) {
        return mapper.getid(id);
    }
}
